import {
  createRouter,
  createWebHashHistory
} from 'vue-router'

import Index from './public/index.vue'
import File from '@/components/file.vue'
import Manage from '@/components/manage.vue'
import Get from '@/components/get.vue'
import Mapping from '@/components/mapping.vue'
import Count from '@/components/count.vue'
import Detail1 from '@/components/detail1.vue'
import Detail2 from '@/components/detail2.vue'
import {
  compile
} from 'vue'
const routes = [{
    path: '/',
    redirect:'/file',
    name: 'Index',
    component: Index,
    children: [{
        path: "file",
        component: File
      },
      {
        path: "manage",
        component: Manage,
      },
      {
        path: "get",
        component:Get,
      },
      {
        path: "mapping",
        component: Mapping,
      },
      {
        path: "count",
        component: Count,
    },{
          path: "detail1",
          component: Detail1,
      },
      {
        path: "detail2",
        component: Detail2,
    }
    ]

  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router